package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.DebtCollectHisDO;
import com.mhc.suzuki.dal.query.DebtCollectHisQuery;

import java.util.List;


/**
 * Manager for DebtCollectHis.
 */
public interface DebtCollectHisManager {
    /**
     * query count by query condition.
     */
    int countByQuery(DebtCollectHisQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(DebtCollectHisQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(DebtCollectHisDO record);

    /**
     * insert selective.
     */
    long insertSelective(DebtCollectHisDO record);

    /**
     * select by query condition.
     */
    List<DebtCollectHisDO> selectByQuery(DebtCollectHisQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<DebtCollectHisDO> selectByQueryWithPage(DebtCollectHisQuery query);

    /**
     * select by primary key.
     */
    DebtCollectHisDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( DebtCollectHisDO record,  DebtCollectHisQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(DebtCollectHisDO record, DebtCollectHisQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(DebtCollectHisDO record);
}